//
// Created by choumei on 2021/9/12.
//

#ifndef NETCLIENT_READTHREAD_H
#define NETCLIENT_READTHREAD_H

#include<QThread>
#include "MyBuffer.h"

class ReadThread : public QThread {
public:
    ReadThread(MyBuffer *buffer, int sockfd, QIODevice *dev);

    [[noreturn]] void run();

private:
    MyBuffer *buffer;
    int sockfd;
    QIODevice *dev;
};


#endif //NETCLIENT_READTHREAD_H
